namespace QMVnSoft.Invoices
{
    using QMVnSoft;
    using QMVnSoft.Controls;
    using QMVnSoft.Controls.ChildGridControls;
    using QMVnSoft.DAL;
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;

    public class FormCTMHViewer : FormHistoryViewer
    {
        private IContainer components;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
        private GridDetail grdDetail;
        public GridDetail grdSubDetail;
        private LabelControl lblDesc_EN;
        private LabelControl lblDia_Chi;
        private LabelControl lblDien_Giai;
        private LabelControl lblGia_Thue;
        private LabelControl lblHan_Tt;
        private LabelControl lblMa_Bp;
        private LabelControl lblMa_Dt;
        private LabelControl lblMa_Hd;
        private LabelControl lblMa_Km;
        private LabelControl lblMa_Nx;
        private LabelControl lblMa_Tte;
        private LabelControl lblNgay_Ct0;
        private LabelControl lblOng_Ba;
        private LabelControl lblSo_Ct0;
        private LabelControl lblSo_Seri0;
        private LabelControl lblThue_GTGT;
        private LabelControl lblTien_Cash;
        private LabelControl lblTTien_Nt;
        private LabelControl lblTTien_Nt0;
        private LabelControl lblTTien_Nt3;
        private LabelControl lblTTien_Nt4;
        private LabelControl lblTTien_Nt5;
        private LabelControl lblTTien_Nt6;
        private LabelControl lblTTien_Nt8;
        private CTMHDataAccess oMethod = new CTMHDataAccess();
        private SearchColumn searchColumn1;
        private SearchColumn searchColumn2;
        private SearchColumn searchColumn3;
        private SearchColumn searchColumn4;
        private SearchColumn searchColumn5;
        private SearchColumn searchColumn6;
        private SearchColumn searchColumn7;
        private SearchColumn searchColumn8;
        private TextControl txtDesc_EN;
        private TextControl txtDia_Chi;
        private TextControl txtDien_Giai;
        private TextOption txtGia_Thue;
        public TextDate txtHan_Tt;
        private TextSearch txtMa_Bp;
        private TextSearch txtMa_Dt;
        private TextSearch txtMa_Hd;
        private TextSearch txtMa_Km;
        private TextSearch txtMa_Nx;
        private TextOption txtMa_Tte;
        public TextDate txtNgay_Ct0;
        private TextControl txtOng_Ba;
        public TextControl txtSo_Ct0;
        public TextControl txtSo_Seri0;
        private TextControl txtTen_Bp;
        private TextControl txtTen_Dt;
        private TextControl txtTen_Hd;
        private TextControl txtTen_Km;
        private TextControl txtTen_Nx;
        private TextNumeric txtThue_GTGT;
        private TextNumeric txtTien_Cash;
        private TextNumeric txtTTien_Nt;
        private TextNumeric txtTTien_Nt0;
        private TextNumeric txtTTien_Nt3;
        private TextNumeric txtTTien_Nt4;
        private TextNumeric txtTTien_Nt5;
        private TextNumeric txtTTien_Nt6;
        private TextNumeric txtTTien_Nt8;
        private DataGridViewTextBoxColumn Column9;
        private DataGridViewTextBoxColumn Column10;
        private DataGridViewTextBoxColumn Column11;
        private DataGridViewTextBoxColumn Column12;
        private DataGridViewTextBoxColumn Column13;
        private DataGridViewTextBoxColumn Column14;
        private DataGridViewTextBoxColumn Column15;
        private DataGridViewTextBoxColumn Column16;
        private DataGridViewTextBoxColumn Column17;
        private DataGridViewTextBoxColumn Column18;
        private NumericColumn Column19;
        private NumericColumn Column20;
        private NumericColumn Column21;
        private NumericColumn Column22;
        private NumericColumn Column23;
        private NumericColumn Column24;
        private NumericColumn Column25;
        private NumericColumn Column26;
        private NumericColumn Column27;
        private NumericColumn Column28;
        private NumericColumn Column29;
        private NumericColumn Column30;
        private NumericColumn Column31;
        private NumericColumn Column32;
        private TextNumeric txtTy_Gia;

        public FormCTMHViewer()
        {
            this.InitializeComponent();
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormCTMHViewer));
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle21 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle22 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
            this.txtDesc_EN = new QMVnSoft.Controls.TextControl();
            this.txtDien_Giai = new QMVnSoft.Controls.TextControl();
            this.txtTen_Hd = new QMVnSoft.Controls.TextControl();
            this.txtTen_Bp = new QMVnSoft.Controls.TextControl();
            this.lblDesc_EN = new QMVnSoft.Controls.LabelControl();
            this.lblDien_Giai = new QMVnSoft.Controls.LabelControl();
            this.txtMa_Hd = new QMVnSoft.Controls.TextSearch();
            this.lblMa_Hd = new QMVnSoft.Controls.LabelControl();
            this.txtMa_Bp = new QMVnSoft.Controls.TextSearch();
            this.lblMa_Bp = new QMVnSoft.Controls.LabelControl();
            this.txtMa_Tte = new QMVnSoft.Controls.TextOption();
            this.txtTy_Gia = new QMVnSoft.Controls.TextNumeric();
            this.txtDia_Chi = new QMVnSoft.Controls.TextControl();
            this.txtOng_Ba = new QMVnSoft.Controls.TextControl();
            this.txtTen_Dt = new QMVnSoft.Controls.TextControl();
            this.lblMa_Tte = new QMVnSoft.Controls.LabelControl();
            this.txtMa_Dt = new QMVnSoft.Controls.TextSearch();
            this.lblDia_Chi = new QMVnSoft.Controls.LabelControl();
            this.lblOng_Ba = new QMVnSoft.Controls.LabelControl();
            this.lblMa_Dt = new QMVnSoft.Controls.LabelControl();
            this.txtHan_Tt = new QMVnSoft.Controls.TextDate();
            this.lblHan_Tt = new QMVnSoft.Controls.LabelControl();
            this.txtTTien_Nt0 = new QMVnSoft.Controls.TextNumeric();
            this.lblTTien_Nt0 = new QMVnSoft.Controls.LabelControl();
            this.lblMa_Km = new QMVnSoft.Controls.LabelControl();
            this.txtMa_Km = new QMVnSoft.Controls.TextSearch();
            this.txtTen_Km = new QMVnSoft.Controls.TextControl();
            this.lblMa_Nx = new QMVnSoft.Controls.LabelControl();
            this.txtMa_Nx = new QMVnSoft.Controls.TextSearch();
            this.txtTen_Nx = new QMVnSoft.Controls.TextControl();
            this.lblTien_Cash = new QMVnSoft.Controls.LabelControl();
            this.txtTien_Cash = new QMVnSoft.Controls.TextNumeric();
            this.lblTTien_Nt6 = new QMVnSoft.Controls.LabelControl();
            this.txtTTien_Nt6 = new QMVnSoft.Controls.TextNumeric();
            this.lblTTien_Nt8 = new QMVnSoft.Controls.LabelControl();
            this.txtTTien_Nt8 = new QMVnSoft.Controls.TextNumeric();
            this.lblTTien_Nt4 = new QMVnSoft.Controls.LabelControl();
            this.txtTTien_Nt4 = new QMVnSoft.Controls.TextNumeric();
            this.lblTTien_Nt = new QMVnSoft.Controls.LabelControl();
            this.txtTTien_Nt = new QMVnSoft.Controls.TextNumeric();
            this.lblTTien_Nt5 = new QMVnSoft.Controls.LabelControl();
            this.txtTTien_Nt5 = new QMVnSoft.Controls.TextNumeric();
            this.lblTTien_Nt3 = new QMVnSoft.Controls.LabelControl();
            this.txtTTien_Nt3 = new QMVnSoft.Controls.TextNumeric();
            this.lblThue_GTGT = new QMVnSoft.Controls.LabelControl();
            this.txtThue_GTGT = new QMVnSoft.Controls.TextNumeric();
            this.lblNgay_Ct0 = new QMVnSoft.Controls.LabelControl();
            this.txtNgay_Ct0 = new QMVnSoft.Controls.TextDate();
            this.lblSo_Ct0 = new QMVnSoft.Controls.LabelControl();
            this.txtSo_Ct0 = new QMVnSoft.Controls.TextControl();
            this.txtGia_Thue = new QMVnSoft.Controls.TextOption();
            this.lblGia_Thue = new QMVnSoft.Controls.LabelControl();
            this.txtSo_Seri0 = new QMVnSoft.Controls.TextControl();
            this.lblSo_Seri0 = new QMVnSoft.Controls.LabelControl();
            this.grdDetail = new QMVnSoft.Controls.GridDetail();
            this.grdSubDetail = new QMVnSoft.Controls.GridDetail();
            this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.searchColumn1 = new QMVnSoft.Controls.ChildGridControls.SearchColumn();
            this.searchColumn2 = new QMVnSoft.Controls.ChildGridControls.SearchColumn();
            this.searchColumn3 = new QMVnSoft.Controls.ChildGridControls.SearchColumn();
            this.searchColumn4 = new QMVnSoft.Controls.ChildGridControls.SearchColumn();
            this.searchColumn5 = new QMVnSoft.Controls.ChildGridControls.SearchColumn();
            this.searchColumn6 = new QMVnSoft.Controls.ChildGridControls.SearchColumn();
            this.searchColumn7 = new QMVnSoft.Controls.ChildGridControls.SearchColumn();
            this.searchColumn8 = new QMVnSoft.Controls.ChildGridControls.SearchColumn();
            this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.Column12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.Column13 = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.Column14 = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.Column15 = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.Column16 = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.Column17 = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.Column18 = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.Column19 = new QMVnSoft.Controls.ChildGridControls.NumericColumn();
            this.Column20 = new QMVnSoft.Controls.ChildGridControls.NumericColumn();
            this.Column21 = new QMVnSoft.Controls.ChildGridControls.NumericColumn();
            this.Column22 = new QMVnSoft.Controls.ChildGridControls.NumericColumn();
            this.Column23 = new QMVnSoft.Controls.ChildGridControls.NumericColumn();
            this.Column24 = new QMVnSoft.Controls.ChildGridControls.NumericColumn();
            this.Column25 = new QMVnSoft.Controls.ChildGridControls.NumericColumn();
            this.Column26 = new QMVnSoft.Controls.ChildGridControls.NumericColumn();
            this.Column27 = new QMVnSoft.Controls.ChildGridControls.NumericColumn();
            this.Column28 = new QMVnSoft.Controls.ChildGridControls.NumericColumn();
            this.Column29 = new QMVnSoft.Controls.ChildGridControls.NumericColumn();
            this.Column30 = new QMVnSoft.Controls.ChildGridControls.NumericColumn();
            this.Column31 = new QMVnSoft.Controls.ChildGridControls.NumericColumn();
            this.Column32 = new QMVnSoft.Controls.ChildGridControls.NumericColumn();
            ((System.ComponentModel.ISupportInitialize)(this.grdDetail)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.grdSubDetail)).BeginInit();
            this.SuspendLayout();
            // 
            // lblPhan_Loai
            // 
            this.lblPhan_Loai.Location = new System.Drawing.Point(12, 514);
            // 
            // txtMa_Loai1
            // 
            this.txtMa_Loai1.Location = new System.Drawing.Point(99, 511);
            this.txtMa_Loai1.TabIndex = 29;
            // 
            // txtMa_Loai2
            // 
            this.txtMa_Loai2.Location = new System.Drawing.Point(327, 511);
            this.txtMa_Loai2.TabIndex = 30;
            // 
            // txtMa_Loai3
            // 
            this.txtMa_Loai3.Location = new System.Drawing.Point(555, 511);
            this.txtMa_Loai3.TabIndex = 31;
            // 
            // txtNgay_Ct
            // 
            this.txtNgay_Ct.TabIndex = 1;
            // 
            // txtNgay_Ps
            // 
            this.txtNgay_Ps.TabIndex = 0;
            // 
            // txtSo_Ct
            // 
            this.txtSo_Ct.TabIndex = 2;
            // 
            // txtDesc_EN
            // 
            this.txtDesc_EN.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.txtDesc_EN.CheckTextSearched = false;
            this.txtDesc_EN.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtDesc_EN.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtDesc_EN.Location = new System.Drawing.Point(487, 133);
            this.txtDesc_EN.MaxLength = 254;
            this.txtDesc_EN.Name = "txtDesc_EN";
            this.txtDesc_EN.OldValue = null;
            this.txtDesc_EN.ReadOnly = true;
            this.txtDesc_EN.Size = new System.Drawing.Size(295, 20);
            this.txtDesc_EN.TabIndex = 11;
            this.txtDesc_EN.UserTextLength = QMVnSoft.AppInstance.TextControlLength.InvoiceDescription;
            this.txtDesc_EN.UserTrimMode = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtDesc_EN.Value = ((object)(resources.GetObject("txtDesc_EN.Value")));
            // 
            // txtDien_Giai
            // 
            this.txtDien_Giai.CheckTextSearched = false;
            this.txtDien_Giai.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtDien_Giai.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtDien_Giai.Location = new System.Drawing.Point(99, 133);
            this.txtDien_Giai.MaxLength = 254;
            this.txtDien_Giai.Name = "txtDien_Giai";
            this.txtDien_Giai.OldValue = null;
            this.txtDien_Giai.ReadOnly = true;
            this.txtDien_Giai.Size = new System.Drawing.Size(296, 20);
            this.txtDien_Giai.TabIndex = 10;
            this.txtDien_Giai.UserTextLength = QMVnSoft.AppInstance.TextControlLength.InvoiceDescription;
            this.txtDien_Giai.UserTrimMode = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtDien_Giai.Value = ((object)(resources.GetObject("txtDien_Giai.Value")));
            // 
            // txtTen_Hd
            // 
            this.txtTen_Hd.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_Hd.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(194)))), ((int)(((byte)(217)))), ((int)(((byte)(247)))));
            this.txtTen_Hd.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Hd.CheckTextSearched = false;
            this.txtTen_Hd.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Hd.Enabled = false;
            this.txtTen_Hd.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Hd.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Hd.Location = new System.Drawing.Point(223, 73);
            this.txtTen_Hd.Name = "txtTen_Hd";
            this.txtTen_Hd.OldValue = null;
            this.txtTen_Hd.Size = new System.Drawing.Size(559, 13);
            this.txtTen_Hd.TabIndex = 86;
            this.txtTen_Hd.UserTextLength = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTen_Hd.UserTrimMode = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Hd.Value = ((object)(resources.GetObject("txtTen_Hd.Value")));
            // 
            // txtTen_Bp
            // 
            this.txtTen_Bp.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_Bp.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(194)))), ((int)(((byte)(217)))), ((int)(((byte)(247)))));
            this.txtTen_Bp.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Bp.CheckTextSearched = false;
            this.txtTen_Bp.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Bp.Enabled = false;
            this.txtTen_Bp.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Bp.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Bp.Location = new System.Drawing.Point(223, 52);
            this.txtTen_Bp.Name = "txtTen_Bp";
            this.txtTen_Bp.OldValue = null;
            this.txtTen_Bp.Size = new System.Drawing.Size(559, 13);
            this.txtTen_Bp.TabIndex = 87;
            this.txtTen_Bp.UserTextLength = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTen_Bp.UserTrimMode = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Bp.Value = ((object)(resources.GetObject("txtTen_Bp.Value")));
            // 
            // lblDesc_EN
            // 
            this.lblDesc_EN.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.lblDesc_EN.AutoSize = true;
            this.lblDesc_EN.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblDesc_EN.Location = new System.Drawing.Point(410, 136);
            this.lblDesc_EN.Name = "lblDesc_EN";
            this.lblDesc_EN.Size = new System.Drawing.Size(71, 14);
            this.lblDesc_EN.TabIndex = 80;
            this.lblDesc_EN.Text = "Diễn giải (EN)";
            // 
            // lblDien_Giai
            // 
            this.lblDien_Giai.AutoSize = true;
            this.lblDien_Giai.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblDien_Giai.Location = new System.Drawing.Point(12, 136);
            this.lblDien_Giai.Name = "lblDien_Giai";
            this.lblDien_Giai.Size = new System.Drawing.Size(73, 14);
            this.lblDien_Giai.TabIndex = 81;
            this.lblDien_Giai.Text = "Diễn giải (VN)";
            // 
            // txtMa_Hd
            // 
            this.txtMa_Hd.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtMa_Hd.CheckTextSearched = false;
            this.txtMa_Hd.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtMa_Hd.EmptyIsValid = true;
            this.txtMa_Hd.FieldDisplay = "Ten_Hd";
            this.txtMa_Hd.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMa_Hd.FoundIsValid = true;
            this.txtMa_Hd.Location = new System.Drawing.Point(99, 70);
            this.txtMa_Hd.MaxLength = 32;
            this.txtMa_Hd.Name = "txtMa_Hd";
            this.txtMa_Hd.OldValue = null;
            this.txtMa_Hd.ReadOnly = true;
            this.txtMa_Hd.Size = new System.Drawing.Size(118, 20);
            this.txtMa_Hd.TabIndex = 6;
            this.txtMa_Hd.TableName = "DMHD";
            this.txtMa_Hd.TextDisplay = this.txtTen_Hd;
            this.txtMa_Hd.UserTextLength = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.txtMa_Hd.UserTrimMode = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtMa_Hd.Value = ((object)(resources.GetObject("txtMa_Hd.Value")));
            // 
            // lblMa_Hd
            // 
            this.lblMa_Hd.AutoSize = true;
            this.lblMa_Hd.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblMa_Hd.Location = new System.Drawing.Point(12, 73);
            this.lblMa_Hd.Name = "lblMa_Hd";
            this.lblMa_Hd.Size = new System.Drawing.Size(54, 14);
            this.lblMa_Hd.TabIndex = 82;
            this.lblMa_Hd.Text = "Hợp đồng";
            // 
            // txtMa_Bp
            // 
            this.txtMa_Bp.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtMa_Bp.CheckTextSearched = false;
            this.txtMa_Bp.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtMa_Bp.EmptyIsValid = true;
            this.txtMa_Bp.FieldDisplay = "Ten_Bp";
            this.txtMa_Bp.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMa_Bp.FoundIsValid = true;
            this.txtMa_Bp.Location = new System.Drawing.Point(99, 49);
            this.txtMa_Bp.MaxLength = 32;
            this.txtMa_Bp.Name = "txtMa_Bp";
            this.txtMa_Bp.OldValue = null;
            this.txtMa_Bp.ReadOnly = true;
            this.txtMa_Bp.Size = new System.Drawing.Size(118, 20);
            this.txtMa_Bp.TabIndex = 5;
            this.txtMa_Bp.TableName = "DMBP";
            this.txtMa_Bp.TextDisplay = this.txtTen_Bp;
            this.txtMa_Bp.UserTextLength = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.txtMa_Bp.UserTrimMode = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtMa_Bp.Value = ((object)(resources.GetObject("txtMa_Bp.Value")));
            // 
            // lblMa_Bp
            // 
            this.lblMa_Bp.AutoSize = true;
            this.lblMa_Bp.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblMa_Bp.Location = new System.Drawing.Point(12, 52);
            this.lblMa_Bp.Name = "lblMa_Bp";
            this.lblMa_Bp.Size = new System.Drawing.Size(47, 14);
            this.lblMa_Bp.TabIndex = 83;
            this.lblMa_Bp.Text = "Bộ phận";
            // 
            // txtMa_Tte
            // 
            this.txtMa_Tte.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.txtMa_Tte.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtMa_Tte.CheckTextSearched = false;
            this.txtMa_Tte.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtMa_Tte.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMa_Tte.InputMask = "USD,VND";
            this.txtMa_Tte.Location = new System.Drawing.Point(697, 28);
            this.txtMa_Tte.Name = "txtMa_Tte";
            this.txtMa_Tte.OldValue = null;
            this.txtMa_Tte.ReadOnly = true;
            this.txtMa_Tte.Size = new System.Drawing.Size(28, 20);
            this.txtMa_Tte.TabIndex = 3;
            this.txtMa_Tte.Text = "USD";
            this.txtMa_Tte.UserTextLength = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtMa_Tte.UserTrimMode = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtMa_Tte.Value = "USD";
            // 
            // txtTy_Gia
            // 
            this.txtTy_Gia.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTy_Gia.BackColor = System.Drawing.Color.White;
            this.txtTy_Gia.DisabledBackColor = System.Drawing.Color.Empty;
            this.txtTy_Gia.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTy_Gia.ForeColor = System.Drawing.Color.Black;
            this.txtTy_Gia.Location = new System.Drawing.Point(724, 28);
            this.txtTy_Gia.Name = "txtTy_Gia";
            this.txtTy_Gia.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtTy_Gia.OldValue = null;
            this.txtTy_Gia.ReadOnly = true;
            this.txtTy_Gia.Size = new System.Drawing.Size(58, 20);
            this.txtTy_Gia.TabIndex = 4;
            this.txtTy_Gia.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtTy_Gia.UserTextNumericFormat = QMVnSoft.AppInstance.TextNumericFormat.ExchangeRate;
            this.txtTy_Gia.Value = ((object)(resources.GetObject("txtTy_Gia.Value")));
            // 
            // txtDia_Chi
            // 
            this.txtDia_Chi.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.txtDia_Chi.CheckTextSearched = false;
            this.txtDia_Chi.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtDia_Chi.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtDia_Chi.Location = new System.Drawing.Point(487, 112);
            this.txtDia_Chi.MaxLength = 128;
            this.txtDia_Chi.Name = "txtDia_Chi";
            this.txtDia_Chi.OldValue = null;
            this.txtDia_Chi.ReadOnly = true;
            this.txtDia_Chi.Size = new System.Drawing.Size(295, 20);
            this.txtDia_Chi.TabIndex = 9;
            this.txtDia_Chi.UserTextLength = QMVnSoft.AppInstance.TextControlLength.ItemDescription;
            this.txtDia_Chi.UserTrimMode = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtDia_Chi.Value = ((object)(resources.GetObject("txtDia_Chi.Value")));
            // 
            // txtOng_Ba
            // 
            this.txtOng_Ba.CheckTextSearched = false;
            this.txtOng_Ba.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtOng_Ba.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtOng_Ba.Location = new System.Drawing.Point(99, 112);
            this.txtOng_Ba.MaxLength = 128;
            this.txtOng_Ba.Name = "txtOng_Ba";
            this.txtOng_Ba.OldValue = null;
            this.txtOng_Ba.ReadOnly = true;
            this.txtOng_Ba.Size = new System.Drawing.Size(296, 20);
            this.txtOng_Ba.TabIndex = 8;
            this.txtOng_Ba.UserTextLength = QMVnSoft.AppInstance.TextControlLength.ItemDescription;
            this.txtOng_Ba.UserTrimMode = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtOng_Ba.Value = ((object)(resources.GetObject("txtOng_Ba.Value")));
            // 
            // txtTen_Dt
            // 
            this.txtTen_Dt.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_Dt.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(194)))), ((int)(((byte)(217)))), ((int)(((byte)(247)))));
            this.txtTen_Dt.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Dt.CheckTextSearched = false;
            this.txtTen_Dt.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Dt.Enabled = false;
            this.txtTen_Dt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Dt.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Dt.Location = new System.Drawing.Point(223, 94);
            this.txtTen_Dt.Name = "txtTen_Dt";
            this.txtTen_Dt.OldValue = null;
            this.txtTen_Dt.Size = new System.Drawing.Size(559, 13);
            this.txtTen_Dt.TabIndex = 97;
            this.txtTen_Dt.UserTextLength = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTen_Dt.UserTrimMode = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Dt.Value = ((object)(resources.GetObject("txtTen_Dt.Value")));
            // 
            // lblMa_Tte
            // 
            this.lblMa_Tte.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.lblMa_Tte.AutoSize = true;
            this.lblMa_Tte.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblMa_Tte.Location = new System.Drawing.Point(652, 31);
            this.lblMa_Tte.Name = "lblMa_Tte";
            this.lblMa_Tte.Size = new System.Drawing.Size(39, 14);
            this.lblMa_Tte.TabIndex = 93;
            this.lblMa_Tte.Text = "Tiền tệ";
            // 
            // txtMa_Dt
            // 
            this.txtMa_Dt.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtMa_Dt.CheckTextSearched = false;
            this.txtMa_Dt.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtMa_Dt.FieldDisplay = "Ten_Dt";
            this.txtMa_Dt.FirstFilter = "Is_Stop = \'1\'";
            this.txtMa_Dt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMa_Dt.Location = new System.Drawing.Point(99, 91);
            this.txtMa_Dt.MaxLength = 32;
            this.txtMa_Dt.Name = "txtMa_Dt";
            this.txtMa_Dt.OldValue = null;
            this.txtMa_Dt.ReadOnly = true;
            this.txtMa_Dt.Size = new System.Drawing.Size(118, 20);
            this.txtMa_Dt.TabIndex = 7;
            this.txtMa_Dt.TableName = "DMDT";
            this.txtMa_Dt.TextDisplay = this.txtTen_Dt;
            this.txtMa_Dt.UserTextLength = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.txtMa_Dt.UserTrimMode = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtMa_Dt.Value = ((object)(resources.GetObject("txtMa_Dt.Value")));
            // 
            // lblDia_Chi
            // 
            this.lblDia_Chi.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.lblDia_Chi.AutoSize = true;
            this.lblDia_Chi.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblDia_Chi.Location = new System.Drawing.Point(441, 115);
            this.lblDia_Chi.Name = "lblDia_Chi";
            this.lblDia_Chi.Size = new System.Drawing.Size(40, 14);
            this.lblDia_Chi.TabIndex = 95;
            this.lblDia_Chi.Text = "Địa chỉ";
            // 
            // lblOng_Ba
            // 
            this.lblOng_Ba.AutoSize = true;
            this.lblOng_Ba.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblOng_Ba.Location = new System.Drawing.Point(12, 115);
            this.lblOng_Ba.Name = "lblOng_Ba";
            this.lblOng_Ba.Size = new System.Drawing.Size(42, 14);
            this.lblOng_Ba.TabIndex = 96;
            this.lblOng_Ba.Text = "Ông bà";
            // 
            // lblMa_Dt
            // 
            this.lblMa_Dt.AutoSize = true;
            this.lblMa_Dt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblMa_Dt.Location = new System.Drawing.Point(12, 94);
            this.lblMa_Dt.Name = "lblMa_Dt";
            this.lblMa_Dt.Size = new System.Drawing.Size(55, 14);
            this.lblMa_Dt.TabIndex = 94;
            this.lblMa_Dt.Text = "Đối tượng";
            // 
            // txtHan_Tt
            // 
            this.txtHan_Tt.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.txtHan_Tt.DateTimeFormat = QMVnSoft.Controls.TextDate.DateTimeFormatType.Date;
            this.txtHan_Tt.Enabled = false;
            this.txtHan_Tt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtHan_Tt.InsertKeyMode = System.Windows.Forms.InsertKeyMode.Overwrite;
            this.txtHan_Tt.Location = new System.Drawing.Point(99, 448);
            this.txtHan_Tt.Mask = "00/00/0000";
            this.txtHan_Tt.Name = "txtHan_Tt";
            this.txtHan_Tt.OldValue = null;
            this.txtHan_Tt.Size = new System.Drawing.Size(79, 20);
            this.txtHan_Tt.TabIndex = 18;
            this.txtHan_Tt.Value = ((object)(resources.GetObject("txtHan_Tt.Value")));
            // 
            // lblHan_Tt
            // 
            this.lblHan_Tt.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.lblHan_Tt.AutoSize = true;
            this.lblHan_Tt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblHan_Tt.Location = new System.Drawing.Point(12, 451);
            this.lblHan_Tt.Name = "lblHan_Tt";
            this.lblHan_Tt.Size = new System.Drawing.Size(80, 14);
            this.lblHan_Tt.TabIndex = 99;
            this.lblHan_Tt.Text = "Hạn thanh toán";
            // 
            // txtTTien_Nt0
            // 
            this.txtTTien_Nt0.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTTien_Nt0.BackColor = System.Drawing.Color.White;
            this.txtTTien_Nt0.Enabled = false;
            this.txtTTien_Nt0.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTTien_Nt0.ForeColor = System.Drawing.Color.Black;
            this.txtTTien_Nt0.Location = new System.Drawing.Point(674, 490);
            this.txtTTien_Nt0.Name = "txtTTien_Nt0";
            this.txtTTien_Nt0.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtTTien_Nt0.OldValue = null;
            this.txtTTien_Nt0.Size = new System.Drawing.Size(108, 20);
            this.txtTTien_Nt0.TabIndex = 28;
            this.txtTTien_Nt0.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtTTien_Nt0.UserTextNumericFormat = QMVnSoft.AppInstance.TextNumericFormat.ForeignAmount;
            this.txtTTien_Nt0.Value = ((object)(resources.GetObject("txtTTien_Nt0.Value")));
            // 
            // lblTTien_Nt0
            // 
            this.lblTTien_Nt0.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.lblTTien_Nt0.AutoSize = true;
            this.lblTTien_Nt0.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTTien_Nt0.Location = new System.Drawing.Point(617, 493);
            this.lblTTien_Nt0.Name = "lblTTien_Nt0";
            this.lblTTien_Nt0.Size = new System.Drawing.Size(51, 14);
            this.lblTTien_Nt0.TabIndex = 101;
            this.lblTTien_Nt0.Text = "Tổng tiền";
            // 
            // lblMa_Km
            // 
            this.lblMa_Km.AutoSize = true;
            this.lblMa_Km.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblMa_Km.Location = new System.Drawing.Point(12, 157);
            this.lblMa_Km.Name = "lblMa_Km";
            this.lblMa_Km.Size = new System.Drawing.Size(61, 14);
            this.lblMa_Km.TabIndex = 83;
            this.lblMa_Km.Text = "Khoản mục";
            // 
            // txtMa_Km
            // 
            this.txtMa_Km.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtMa_Km.CheckTextSearched = false;
            this.txtMa_Km.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtMa_Km.EmptyIsValid = true;
            this.txtMa_Km.FieldDisplay = "Ten_Km";
            this.txtMa_Km.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMa_Km.FoundIsValid = true;
            this.txtMa_Km.Location = new System.Drawing.Point(99, 154);
            this.txtMa_Km.MaxLength = 32;
            this.txtMa_Km.Name = "txtMa_Km";
            this.txtMa_Km.OldValue = null;
            this.txtMa_Km.ReadOnly = true;
            this.txtMa_Km.Size = new System.Drawing.Size(118, 20);
            this.txtMa_Km.TabIndex = 12;
            this.txtMa_Km.TableName = "DMKM";
            this.txtMa_Km.TextDisplay = this.txtTen_Km;
            this.txtMa_Km.UserTextLength = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.txtMa_Km.UserTrimMode = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtMa_Km.Value = ((object)(resources.GetObject("txtMa_Km.Value")));
            // 
            // txtTen_Km
            // 
            this.txtTen_Km.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_Km.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(194)))), ((int)(((byte)(217)))), ((int)(((byte)(247)))));
            this.txtTen_Km.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Km.CheckTextSearched = false;
            this.txtTen_Km.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Km.Enabled = false;
            this.txtTen_Km.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Km.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Km.Location = new System.Drawing.Point(223, 157);
            this.txtTen_Km.Name = "txtTen_Km";
            this.txtTen_Km.OldValue = null;
            this.txtTen_Km.Size = new System.Drawing.Size(559, 13);
            this.txtTen_Km.TabIndex = 87;
            this.txtTen_Km.UserTextLength = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTen_Km.UserTrimMode = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Km.Value = ((object)(resources.GetObject("txtTen_Km.Value")));
            // 
            // lblMa_Nx
            // 
            this.lblMa_Nx.AutoSize = true;
            this.lblMa_Nx.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblMa_Nx.Location = new System.Drawing.Point(12, 178);
            this.lblMa_Nx.Name = "lblMa_Nx";
            this.lblMa_Nx.Size = new System.Drawing.Size(72, 14);
            this.lblMa_Nx.TabIndex = 82;
            this.lblMa_Nx.Text = "Mã nhập xuất";
            // 
            // txtMa_Nx
            // 
            this.txtMa_Nx.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtMa_Nx.CheckTextSearched = false;
            this.txtMa_Nx.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtMa_Nx.FieldDisplay = "Ten_Nx";
            this.txtMa_Nx.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMa_Nx.FoundIsValid = true;
            this.txtMa_Nx.Location = new System.Drawing.Point(99, 175);
            this.txtMa_Nx.MaxLength = 32;
            this.txtMa_Nx.Name = "txtMa_Nx";
            this.txtMa_Nx.OldValue = null;
            this.txtMa_Nx.ReadOnly = true;
            this.txtMa_Nx.Size = new System.Drawing.Size(118, 20);
            this.txtMa_Nx.TabIndex = 13;
            this.txtMa_Nx.TableName = "DMNX";
            this.txtMa_Nx.TextDisplay = this.txtTen_Nx;
            this.txtMa_Nx.UserTextLength = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.txtMa_Nx.UserTrimMode = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtMa_Nx.Value = ((object)(resources.GetObject("txtMa_Nx.Value")));
            // 
            // txtTen_Nx
            // 
            this.txtTen_Nx.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_Nx.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(194)))), ((int)(((byte)(217)))), ((int)(((byte)(247)))));
            this.txtTen_Nx.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Nx.CheckTextSearched = false;
            this.txtTen_Nx.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Nx.Enabled = false;
            this.txtTen_Nx.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Nx.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Nx.Location = new System.Drawing.Point(223, 178);
            this.txtTen_Nx.Name = "txtTen_Nx";
            this.txtTen_Nx.OldValue = null;
            this.txtTen_Nx.Size = new System.Drawing.Size(559, 13);
            this.txtTen_Nx.TabIndex = 86;
            this.txtTen_Nx.UserTextLength = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTen_Nx.UserTrimMode = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Nx.Value = ((object)(resources.GetObject("txtTen_Nx.Value")));
            // 
            // lblTien_Cash
            // 
            this.lblTien_Cash.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.lblTien_Cash.AutoSize = true;
            this.lblTien_Cash.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTien_Cash.Location = new System.Drawing.Point(12, 430);
            this.lblTien_Cash.Name = "lblTien_Cash";
            this.lblTien_Cash.Size = new System.Drawing.Size(47, 14);
            this.lblTien_Cash.TabIndex = 101;
            this.lblTien_Cash.Text = "Tiền mặt";
            // 
            // txtTien_Cash
            // 
            this.txtTien_Cash.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.txtTien_Cash.BackColor = System.Drawing.Color.White;
            this.txtTien_Cash.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTien_Cash.ForeColor = System.Drawing.Color.Black;
            this.txtTien_Cash.Location = new System.Drawing.Point(99, 427);
            this.txtTien_Cash.Name = "txtTien_Cash";
            this.txtTien_Cash.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtTien_Cash.OldValue = null;
            this.txtTien_Cash.ReadOnly = true;
            this.txtTien_Cash.Size = new System.Drawing.Size(108, 20);
            this.txtTien_Cash.TabIndex = 15;
            this.txtTien_Cash.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtTien_Cash.UserTextNumericFormat = QMVnSoft.AppInstance.TextNumericFormat.ForeignAmount;
            this.txtTien_Cash.Value = ((object)(resources.GetObject("txtTien_Cash.Value")));
            // 
            // lblTTien_Nt6
            // 
            this.lblTTien_Nt6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.lblTTien_Nt6.AutoSize = true;
            this.lblTTien_Nt6.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTTien_Nt6.Location = new System.Drawing.Point(629, 430);
            this.lblTTien_Nt6.Name = "lblTTien_Nt6";
            this.lblTTien_Nt6.Size = new System.Drawing.Size(39, 14);
            this.lblTTien_Nt6.TabIndex = 101;
            this.lblTTien_Nt6.Text = "Chi phí";
            // 
            // txtTTien_Nt6
            // 
            this.txtTTien_Nt6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTTien_Nt6.BackColor = System.Drawing.Color.White;
            this.txtTTien_Nt6.Enabled = false;
            this.txtTTien_Nt6.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTTien_Nt6.ForeColor = System.Drawing.Color.Black;
            this.txtTTien_Nt6.Location = new System.Drawing.Point(674, 427);
            this.txtTTien_Nt6.Name = "txtTTien_Nt6";
            this.txtTTien_Nt6.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtTTien_Nt6.OldValue = null;
            this.txtTTien_Nt6.Size = new System.Drawing.Size(108, 20);
            this.txtTTien_Nt6.TabIndex = 17;
            this.txtTTien_Nt6.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtTTien_Nt6.UserTextNumericFormat = QMVnSoft.AppInstance.TextNumericFormat.ForeignAmount;
            this.txtTTien_Nt6.Value = ((object)(resources.GetObject("txtTTien_Nt6.Value")));
            // 
            // lblTTien_Nt8
            // 
            this.lblTTien_Nt8.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.lblTTien_Nt8.AutoSize = true;
            this.lblTTien_Nt8.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTTien_Nt8.Location = new System.Drawing.Point(558, 451);
            this.lblTTien_Nt8.Name = "lblTTien_Nt8";
            this.lblTTien_Nt8.Size = new System.Drawing.Size(110, 14);
            this.lblTTien_Nt8.TabIndex = 101;
            this.lblTTien_Nt8.Text = "Thuế tiêu thụ đặc biệt";
            // 
            // txtTTien_Nt8
            // 
            this.txtTTien_Nt8.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTTien_Nt8.BackColor = System.Drawing.Color.White;
            this.txtTTien_Nt8.Enabled = false;
            this.txtTTien_Nt8.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTTien_Nt8.ForeColor = System.Drawing.Color.Black;
            this.txtTTien_Nt8.Location = new System.Drawing.Point(674, 448);
            this.txtTTien_Nt8.Name = "txtTTien_Nt8";
            this.txtTTien_Nt8.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtTTien_Nt8.OldValue = null;
            this.txtTTien_Nt8.Size = new System.Drawing.Size(108, 20);
            this.txtTTien_Nt8.TabIndex = 20;
            this.txtTTien_Nt8.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtTTien_Nt8.UserTextNumericFormat = QMVnSoft.AppInstance.TextNumericFormat.ForeignAmount;
            this.txtTTien_Nt8.Value = ((object)(resources.GetObject("txtTTien_Nt8.Value")));
            // 
            // lblTTien_Nt4
            // 
            this.lblTTien_Nt4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.lblTTien_Nt4.AutoSize = true;
            this.lblTTien_Nt4.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTTien_Nt4.Location = new System.Drawing.Point(615, 472);
            this.lblTTien_Nt4.Name = "lblTTien_Nt4";
            this.lblTTien_Nt4.Size = new System.Drawing.Size(53, 14);
            this.lblTTien_Nt4.TabIndex = 101;
            this.lblTTien_Nt4.Text = "Hoa hồng";
            // 
            // txtTTien_Nt4
            // 
            this.txtTTien_Nt4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTTien_Nt4.BackColor = System.Drawing.Color.White;
            this.txtTTien_Nt4.Enabled = false;
            this.txtTTien_Nt4.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTTien_Nt4.ForeColor = System.Drawing.Color.Black;
            this.txtTTien_Nt4.Location = new System.Drawing.Point(674, 469);
            this.txtTTien_Nt4.Name = "txtTTien_Nt4";
            this.txtTTien_Nt4.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtTTien_Nt4.OldValue = null;
            this.txtTTien_Nt4.Size = new System.Drawing.Size(108, 20);
            this.txtTTien_Nt4.TabIndex = 24;
            this.txtTTien_Nt4.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtTTien_Nt4.UserTextNumericFormat = QMVnSoft.AppInstance.TextNumericFormat.ForeignAmount;
            this.txtTTien_Nt4.Value = ((object)(resources.GetObject("txtTTien_Nt4.Value")));
            // 
            // lblTTien_Nt
            // 
            this.lblTTien_Nt.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
            this.lblTTien_Nt.AutoSize = true;
            this.lblTTien_Nt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTTien_Nt.Location = new System.Drawing.Point(386, 430);
            this.lblTTien_Nt.Name = "lblTTien_Nt";
            this.lblTTien_Nt.Size = new System.Drawing.Size(54, 14);
            this.lblTTien_Nt.TabIndex = 101;
            this.lblTTien_Nt.Text = "Tiền hàng";
            // 
            // txtTTien_Nt
            // 
            this.txtTTien_Nt.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
            this.txtTTien_Nt.BackColor = System.Drawing.Color.White;
            this.txtTTien_Nt.Enabled = false;
            this.txtTTien_Nt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTTien_Nt.ForeColor = System.Drawing.Color.Black;
            this.txtTTien_Nt.Location = new System.Drawing.Point(446, 427);
            this.txtTTien_Nt.Name = "txtTTien_Nt";
            this.txtTTien_Nt.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtTTien_Nt.OldValue = null;
            this.txtTTien_Nt.Size = new System.Drawing.Size(108, 20);
            this.txtTTien_Nt.TabIndex = 16;
            this.txtTTien_Nt.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtTTien_Nt.UserTextNumericFormat = QMVnSoft.AppInstance.TextNumericFormat.ForeignAmount;
            this.txtTTien_Nt.Value = ((object)(resources.GetObject("txtTTien_Nt.Value")));
            // 
            // lblTTien_Nt5
            // 
            this.lblTTien_Nt5.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
            this.lblTTien_Nt5.AutoSize = true;
            this.lblTTien_Nt5.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTTien_Nt5.Location = new System.Drawing.Point(356, 451);
            this.lblTTien_Nt5.Name = "lblTTien_Nt5";
            this.lblTTien_Nt5.Size = new System.Drawing.Size(84, 14);
            this.lblTTien_Nt5.TabIndex = 101;
            this.lblTTien_Nt5.Text = "Thuế nhập khẩu";
            // 
            // txtTTien_Nt5
            // 
            this.txtTTien_Nt5.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
            this.txtTTien_Nt5.BackColor = System.Drawing.Color.White;
            this.txtTTien_Nt5.Enabled = false;
            this.txtTTien_Nt5.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTTien_Nt5.ForeColor = System.Drawing.Color.Black;
            this.txtTTien_Nt5.Location = new System.Drawing.Point(446, 448);
            this.txtTTien_Nt5.Name = "txtTTien_Nt5";
            this.txtTTien_Nt5.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtTTien_Nt5.OldValue = null;
            this.txtTTien_Nt5.Size = new System.Drawing.Size(108, 20);
            this.txtTTien_Nt5.TabIndex = 19;
            this.txtTTien_Nt5.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtTTien_Nt5.UserTextNumericFormat = QMVnSoft.AppInstance.TextNumericFormat.ForeignAmount;
            this.txtTTien_Nt5.Value = ((object)(resources.GetObject("txtTTien_Nt5.Value")));
            // 
            // lblTTien_Nt3
            // 
            this.lblTTien_Nt3.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
            this.lblTTien_Nt3.AutoSize = true;
            this.lblTTien_Nt3.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTTien_Nt3.Location = new System.Drawing.Point(378, 472);
            this.lblTTien_Nt3.Name = "lblTTien_Nt3";
            this.lblTTien_Nt3.Size = new System.Drawing.Size(62, 14);
            this.lblTTien_Nt3.TabIndex = 101;
            this.lblTTien_Nt3.Text = "Thuế GTGT";
            // 
            // txtTTien_Nt3
            // 
            this.txtTTien_Nt3.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
            this.txtTTien_Nt3.BackColor = System.Drawing.Color.White;
            this.txtTTien_Nt3.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTTien_Nt3.ForeColor = System.Drawing.Color.Black;
            this.txtTTien_Nt3.Location = new System.Drawing.Point(446, 469);
            this.txtTTien_Nt3.Name = "txtTTien_Nt3";
            this.txtTTien_Nt3.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtTTien_Nt3.OldValue = null;
            this.txtTTien_Nt3.ReadOnly = true;
            this.txtTTien_Nt3.Size = new System.Drawing.Size(108, 20);
            this.txtTTien_Nt3.TabIndex = 23;
            this.txtTTien_Nt3.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtTTien_Nt3.UserTextNumericFormat = QMVnSoft.AppInstance.TextNumericFormat.ForeignAmount;
            this.txtTTien_Nt3.Value = ((object)(resources.GetObject("txtTTien_Nt3.Value")));
            // 
            // lblThue_GTGT
            // 
            this.lblThue_GTGT.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.lblThue_GTGT.AutoSize = true;
            this.lblThue_GTGT.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblThue_GTGT.Location = new System.Drawing.Point(12, 472);
            this.lblThue_GTGT.Name = "lblThue_GTGT";
            this.lblThue_GTGT.Size = new System.Drawing.Size(83, 14);
            this.lblThue_GTGT.TabIndex = 101;
            this.lblThue_GTGT.Text = "Thuế GTGT (%)";
            // 
            // txtThue_GTGT
            // 
            this.txtThue_GTGT.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.txtThue_GTGT.BackColor = System.Drawing.Color.White;
            this.txtThue_GTGT.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtThue_GTGT.ForeColor = System.Drawing.Color.Black;
            this.txtThue_GTGT.Location = new System.Drawing.Point(99, 469);
            this.txtThue_GTGT.Name = "txtThue_GTGT";
            this.txtThue_GTGT.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtThue_GTGT.OldValue = null;
            this.txtThue_GTGT.ReadOnly = true;
            this.txtThue_GTGT.Size = new System.Drawing.Size(79, 20);
            this.txtThue_GTGT.TabIndex = 21;
            this.txtThue_GTGT.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtThue_GTGT.UserTextNumericFormat = QMVnSoft.AppInstance.TextNumericFormat.None;
            this.txtThue_GTGT.Value = ((object)(resources.GetObject("txtThue_GTGT.Value")));
            // 
            // lblNgay_Ct0
            // 
            this.lblNgay_Ct0.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.lblNgay_Ct0.AutoSize = true;
            this.lblNgay_Ct0.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblNgay_Ct0.Location = new System.Drawing.Point(12, 493);
            this.lblNgay_Ct0.Name = "lblNgay_Ct0";
            this.lblNgay_Ct0.Size = new System.Drawing.Size(75, 14);
            this.lblNgay_Ct0.TabIndex = 99;
            this.lblNgay_Ct0.Text = "Ngày hóa đơn";
            // 
            // txtNgay_Ct0
            // 
            this.txtNgay_Ct0.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.txtNgay_Ct0.DateTimeFormat = QMVnSoft.Controls.TextDate.DateTimeFormatType.Date;
            this.txtNgay_Ct0.Enabled = false;
            this.txtNgay_Ct0.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtNgay_Ct0.InsertKeyMode = System.Windows.Forms.InsertKeyMode.Overwrite;
            this.txtNgay_Ct0.Location = new System.Drawing.Point(99, 490);
            this.txtNgay_Ct0.Mask = "00/00/0000";
            this.txtNgay_Ct0.Name = "txtNgay_Ct0";
            this.txtNgay_Ct0.OldValue = null;
            this.txtNgay_Ct0.Size = new System.Drawing.Size(79, 20);
            this.txtNgay_Ct0.TabIndex = 25;
            this.txtNgay_Ct0.Value = ((object)(resources.GetObject("txtNgay_Ct0.Value")));
            // 
            // lblSo_Ct0
            // 
            this.lblSo_Ct0.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.lblSo_Ct0.AutoSize = true;
            this.lblSo_Ct0.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblSo_Ct0.Location = new System.Drawing.Point(184, 493);
            this.lblSo_Ct0.Name = "lblSo_Ct0";
            this.lblSo_Ct0.Size = new System.Drawing.Size(63, 14);
            this.lblSo_Ct0.TabIndex = 104;
            this.lblSo_Ct0.Text = "Số hóa đơn";
            // 
            // txtSo_Ct0
            // 
            this.txtSo_Ct0.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.txtSo_Ct0.CheckTextSearched = false;
            this.txtSo_Ct0.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtSo_Ct0.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtSo_Ct0.Location = new System.Drawing.Point(253, 490);
            this.txtSo_Ct0.Name = "txtSo_Ct0";
            this.txtSo_Ct0.OldValue = null;
            this.txtSo_Ct0.ReadOnly = true;
            this.txtSo_Ct0.Size = new System.Drawing.Size(90, 20);
            this.txtSo_Ct0.TabIndex = 26;
            this.txtSo_Ct0.UserTextLength = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtSo_Ct0.UserTrimMode = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtSo_Ct0.Value = ((object)(resources.GetObject("txtSo_Ct0.Value")));
            // 
            // txtGia_Thue
            // 
            this.txtGia_Thue.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.txtGia_Thue.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtGia_Thue.CheckTextSearched = false;
            this.txtGia_Thue.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtGia_Thue.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtGia_Thue.InputMask = "";
            this.txtGia_Thue.Location = new System.Drawing.Point(253, 469);
            this.txtGia_Thue.Name = "txtGia_Thue";
            this.txtGia_Thue.OldValue = null;
            this.txtGia_Thue.ReadOnly = true;
            this.txtGia_Thue.Size = new System.Drawing.Size(23, 20);
            this.txtGia_Thue.TabIndex = 22;
            this.txtGia_Thue.UserTextLength = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtGia_Thue.UserTrimMode = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtGia_Thue.Value = ((object)(resources.GetObject("txtGia_Thue.Value")));
            this.txtGia_Thue.Visible = false;
            // 
            // lblGia_Thue
            // 
            this.lblGia_Thue.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.lblGia_Thue.AutoSize = true;
            this.lblGia_Thue.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblGia_Thue.Location = new System.Drawing.Point(184, 472);
            this.lblGia_Thue.Name = "lblGia_Thue";
            this.lblGia_Thue.Size = new System.Drawing.Size(62, 14);
            this.lblGia_Thue.TabIndex = 104;
            this.lblGia_Thue.Text = "Giá có thuế";
            this.lblGia_Thue.Visible = false;
            // 
            // txtSo_Seri0
            // 
            this.txtSo_Seri0.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
            this.txtSo_Seri0.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtSo_Seri0.CheckTextSearched = false;
            this.txtSo_Seri0.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtSo_Seri0.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtSo_Seri0.Location = new System.Drawing.Point(446, 490);
            this.txtSo_Seri0.Name = "txtSo_Seri0";
            this.txtSo_Seri0.OldValue = null;
            this.txtSo_Seri0.ReadOnly = true;
            this.txtSo_Seri0.Size = new System.Drawing.Size(108, 20);
            this.txtSo_Seri0.TabIndex = 27;
            this.txtSo_Seri0.UserTextLength = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtSo_Seri0.UserTrimMode = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtSo_Seri0.Value = ((object)(resources.GetObject("txtSo_Seri0.Value")));
            // 
            // lblSo_Seri0
            // 
            this.lblSo_Seri0.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
            this.lblSo_Seri0.AutoSize = true;
            this.lblSo_Seri0.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblSo_Seri0.Location = new System.Drawing.Point(354, 493);
            this.lblSo_Seri0.Name = "lblSo_Seri0";
            this.lblSo_Seri0.Size = new System.Drawing.Size(86, 14);
            this.lblSo_Seri0.TabIndex = 104;
            this.lblSo_Seri0.Text = "Ký hiệu hóa đơn";
            // 
            // grdDetail
            // 
            this.grdDetail.AllowUserToAddRows = false;
            this.grdDetail.AllowUserToDeleteRows = false;
            this.grdDetail.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.grdDetail.CheckAutoSize = true;
            this.grdDetail.CheckColor = false;
            this.grdDetail.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.grdDetail.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
            this.Column9,
            this.Column10,
            this.Column11,
            this.Column12,
            this.Column13,
            this.Column14,
            this.Column15,
            this.Column16,
            this.Column17,
            this.Column18,
            this.Column19,
            this.Column20,
            this.Column21,
            this.Column22,
            this.Column23,
            this.Column24,
            this.Column25,
            this.Column26,
            this.Column27,
            this.Column28,
            this.Column29,
            this.Column30,
            this.Column31,
            this.Column32});
            this.grdDetail.Font = new System.Drawing.Font("Arial", 8.25F);
            this.grdDetail.Location = new System.Drawing.Point(0, 201);
            this.grdDetail.Name = "grdDetail";
            this.grdDetail.Size = new System.Drawing.Size(794, 220);
            this.grdDetail.TabIndex = 14;
            // 
            // grdSubDetail
            // 
            this.grdSubDetail.AllowUserToAddRows = false;
            this.grdSubDetail.AllowUserToDeleteRows = false;
            this.grdSubDetail.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.grdSubDetail.CheckAutoSize = true;
            this.grdSubDetail.CheckColor = false;
            this.grdSubDetail.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.grdSubDetail.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
            this.dataGridViewTextBoxColumn1,
            this.searchColumn1,
            this.searchColumn2,
            this.searchColumn3,
            this.searchColumn4,
            this.searchColumn5,
            this.searchColumn6,
            this.searchColumn7,
            this.searchColumn8});
            this.grdSubDetail.FirstColumnIndex = -1;
            this.grdSubDetail.Font = new System.Drawing.Font("Arial", 8.25F);
            this.grdSubDetail.Location = new System.Drawing.Point(0, 201);
            this.grdSubDetail.Name = "grdSubDetail";
            this.grdSubDetail.Size = new System.Drawing.Size(794, 220);
            this.grdSubDetail.TabIndex = 105;
            this.grdSubDetail.Visible = false;
            // 
            // dataGridViewTextBoxColumn1
            // 
            this.dataGridViewTextBoxColumn1.DataPropertyName = "Ten_Vt";
            this.dataGridViewTextBoxColumn1.HeaderText = "Tên vật tư";
            this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
            this.dataGridViewTextBoxColumn1.ReadOnly = true;
            this.dataGridViewTextBoxColumn1.Width = 175;
            // 
            // searchColumn1
            // 
            this.searchColumn1.DataPropertyName = "Tk_No";
            dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
            this.searchColumn1.DefaultCellStyle = dataGridViewCellStyle15;
            this.searchColumn1.DisabledForeColor = System.Drawing.Color.Blue;
            this.searchColumn1.FirstFilter = "Loai_Tk = \'C\'";
            this.searchColumn1.HeaderText = "Tk nợ";
            this.searchColumn1.Name = "searchColumn1";
            this.searchColumn1.ReadOnly = true;
            this.searchColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.searchColumn1.TableName = "DMTK";
            this.searchColumn1.UserTextLength = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.searchColumn1.UserTrimMode = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.searchColumn1.Width = 72;
            // 
            // searchColumn2
            // 
            this.searchColumn2.DataPropertyName = "Tk_Co";
            dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
            this.searchColumn2.DefaultCellStyle = dataGridViewCellStyle16;
            this.searchColumn2.DisabledForeColor = System.Drawing.Color.Blue;
            this.searchColumn2.FirstFilter = "Loai_Tk = \'C\'";
            this.searchColumn2.HeaderText = "Tk có";
            this.searchColumn2.Name = "searchColumn2";
            this.searchColumn2.ReadOnly = true;
            this.searchColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.searchColumn2.TableName = "DMTK";
            this.searchColumn2.UserTextLength = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.searchColumn2.UserTrimMode = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.searchColumn2.Width = 72;
            // 
            // searchColumn3
            // 
            this.searchColumn3.DataPropertyName = "Tk_No3";
            dataGridViewCellStyle17.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
            this.searchColumn3.DefaultCellStyle = dataGridViewCellStyle17;
            this.searchColumn3.DisabledForeColor = System.Drawing.Color.Blue;
            this.searchColumn3.FirstFilter = "Loai_Tk = \'C\'";
            this.searchColumn3.HeaderText = "Tk nợ thuế GTGT";
            this.searchColumn3.Name = "searchColumn3";
            this.searchColumn3.ReadOnly = true;
            this.searchColumn3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.searchColumn3.TableName = "DMTK";
            this.searchColumn3.UserTextLength = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.searchColumn3.UserTrimMode = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.searchColumn3.Width = 72;
            // 
            // searchColumn4
            // 
            this.searchColumn4.DataPropertyName = "Tk_Co3";
            dataGridViewCellStyle18.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
            this.searchColumn4.DefaultCellStyle = dataGridViewCellStyle18;
            this.searchColumn4.DisabledForeColor = System.Drawing.Color.Blue;
            this.searchColumn4.FirstFilter = "Loai_Tk = \'C\'";
            this.searchColumn4.HeaderText = "Tk có thuế GTGT";
            this.searchColumn4.Name = "searchColumn4";
            this.searchColumn4.ReadOnly = true;
            this.searchColumn4.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.searchColumn4.TableName = "DMTK";
            this.searchColumn4.UserTextLength = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.searchColumn4.UserTrimMode = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.searchColumn4.Width = 72;
            // 
            // searchColumn5
            // 
            this.searchColumn5.DataPropertyName = "Tk_No5";
            dataGridViewCellStyle19.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
            this.searchColumn5.DefaultCellStyle = dataGridViewCellStyle19;
            this.searchColumn5.DisabledForeColor = System.Drawing.Color.Blue;
            this.searchColumn5.FirstFilter = "Loai_Tk = \'C\'";
            this.searchColumn5.HeaderText = "Tk nợ thuế NK";
            this.searchColumn5.Name = "searchColumn5";
            this.searchColumn5.ReadOnly = true;
            this.searchColumn5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.searchColumn5.TableName = "DMTK";
            this.searchColumn5.UserTextLength = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.searchColumn5.UserTrimMode = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.searchColumn5.Width = 72;
            // 
            // searchColumn6
            // 
            this.searchColumn6.DataPropertyName = "Tk_Co5";
            dataGridViewCellStyle20.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
            this.searchColumn6.DefaultCellStyle = dataGridViewCellStyle20;
            this.searchColumn6.DisabledForeColor = System.Drawing.Color.Blue;
            this.searchColumn6.FirstFilter = "Loai_Tk = \'C\'";
            this.searchColumn6.HeaderText = "Tk có thuế NK";
            this.searchColumn6.Name = "searchColumn6";
            this.searchColumn6.ReadOnly = true;
            this.searchColumn6.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.searchColumn6.TableName = "DMTK";
            this.searchColumn6.UserTextLength = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.searchColumn6.UserTrimMode = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.searchColumn6.Width = 72;
            // 
            // searchColumn7
            // 
            this.searchColumn7.DataPropertyName = "Tk_No8";
            dataGridViewCellStyle21.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
            this.searchColumn7.DefaultCellStyle = dataGridViewCellStyle21;
            this.searchColumn7.DisabledForeColor = System.Drawing.Color.Blue;
            this.searchColumn7.FirstFilter = "Loai_Tk = \'C\'";
            this.searchColumn7.HeaderText = "Tk nợ thuế TTĐB";
            this.searchColumn7.Name = "searchColumn7";
            this.searchColumn7.ReadOnly = true;
            this.searchColumn7.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.searchColumn7.TableName = "DMTK";
            this.searchColumn7.UserTextLength = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.searchColumn7.UserTrimMode = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.searchColumn7.Width = 72;
            // 
            // searchColumn8
            // 
            this.searchColumn8.DataPropertyName = "TK_Co8";
            dataGridViewCellStyle22.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
            this.searchColumn8.DefaultCellStyle = dataGridViewCellStyle22;
            this.searchColumn8.DisabledForeColor = System.Drawing.Color.Blue;
            this.searchColumn8.FirstFilter = "Loai_Tk = \'C\'";
            this.searchColumn8.HeaderText = "Tk có thuế TTĐB";
            this.searchColumn8.Name = "searchColumn8";
            this.searchColumn8.ReadOnly = true;
            this.searchColumn8.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.searchColumn8.TableName = "DMTK";
            this.searchColumn8.UserTextLength = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.searchColumn8.UserTrimMode = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.searchColumn8.Width = 72;
            // 
            // Column9
            // 
            this.Column9.DataPropertyName = "Ma_Vt";
            this.Column9.HeaderText = "Mã vật tư";
            this.Column9.Name = "Column9";
            this.Column9.ReadOnly = true;
            this.Column9.Resizable = System.Windows.Forms.DataGridViewTriState.True;
            this.Column9.Width = 70;
            // 
            // Column10
            // 
            this.Column10.DataPropertyName = "Ten_Vt";
            this.Column10.HeaderText = "Tên vật tư";
            this.Column10.MinimumWidth = 120;
            this.Column10.Name = "Column10";
            this.Column10.ReadOnly = true;
            this.Column10.Width = 120;
            // 
            // Column11
            // 
            this.Column11.DataPropertyName = "Dvt";
            this.Column11.HeaderText = "Đvt";
            this.Column11.Name = "Column11";
            this.Column11.ReadOnly = true;
            this.Column11.Resizable = System.Windows.Forms.DataGridViewTriState.True;
            this.Column11.Width = 70;
            // 
            // Column12
            // 
            this.Column12.DataPropertyName = "Ma_Kho";
            this.Column12.HeaderText = "Kho";
            this.Column12.Name = "Column12";
            this.Column12.ReadOnly = true;
            this.Column12.Resizable = System.Windows.Forms.DataGridViewTriState.True;
            this.Column12.Width = 70;
            // 
            // Column13
            // 
            this.Column13.DataPropertyName = "Ma_Bp";
            this.Column13.HeaderText = "Bộ phận";
            this.Column13.Name = "Column13";
            this.Column13.ReadOnly = true;
            this.Column13.Resizable = System.Windows.Forms.DataGridViewTriState.True;
            this.Column13.Width = 70;
            // 
            // Column14
            // 
            this.Column14.DataPropertyName = "Ma_Hd";
            this.Column14.HeaderText = "Hợp đồng";
            this.Column14.Name = "Column14";
            this.Column14.ReadOnly = true;
            this.Column14.Resizable = System.Windows.Forms.DataGridViewTriState.True;
            this.Column14.Width = 70;
            // 
            // Column15
            // 
            this.Column15.DataPropertyName = "Ma_Km";
            this.Column15.HeaderText = "Khoản mục";
            this.Column15.Name = "Column15";
            this.Column15.ReadOnly = true;
            this.Column15.Resizable = System.Windows.Forms.DataGridViewTriState.True;
            this.Column15.Width = 70;
            // 
            // Column16
            // 
            this.Column16.DataPropertyName = "Ma_Sp";
            this.Column16.HeaderText = "Sản phẩm";
            this.Column16.Name = "Column16";
            this.Column16.ReadOnly = true;
            this.Column16.Resizable = System.Windows.Forms.DataGridViewTriState.True;
            this.Column16.Width = 70;
            // 
            // Column17
            // 
            this.Column17.DataPropertyName = "Lo_Hang";
            this.Column17.HeaderText = "Lô hàng";
            this.Column17.Name = "Column17";
            this.Column17.ReadOnly = true;
            this.Column17.Resizable = System.Windows.Forms.DataGridViewTriState.True;
            this.Column17.Width = 70;
            // 
            // Column18
            // 
            this.Column18.DataPropertyName = "Han_Dung";
            this.Column18.HeaderText = "Hạn dùng";
            this.Column18.Name = "Column18";
            this.Column18.ReadOnly = true;
            this.Column18.Resizable = System.Windows.Forms.DataGridViewTriState.False;
            this.Column18.Width = 70;
            // 
            // Column19
            // 
            this.Column19.DataPropertyName = "H_Luong";
            dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
            this.Column19.DefaultCellStyle = dataGridViewCellStyle1;
            this.Column19.HeaderText = "Hàm lượng";
            this.Column19.Name = "Column19";
            this.Column19.ReadOnly = true;
            this.Column19.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.Column19.UserTextNumericFormat = QMVnSoft.AppInstance.TextNumericFormat.Percent;
            this.Column19.Width = 70;
            // 
            // Column20
            // 
            this.Column20.DataPropertyName = "Do_Am_PT";
            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
            this.Column20.DefaultCellStyle = dataGridViewCellStyle2;
            this.Column20.HeaderText = "Độ ẩm";
            this.Column20.Name = "Column20";
            this.Column20.ReadOnly = true;
            this.Column20.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.Column20.UserTextNumericFormat = QMVnSoft.AppInstance.TextNumericFormat.Percent;
            this.Column20.Width = 70;
            // 
            // Column21
            // 
            this.Column21.DataPropertyName = "Do_Con_PT";
            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
            this.Column21.DefaultCellStyle = dataGridViewCellStyle3;
            this.Column21.HeaderText = "Độ cồn";
            this.Column21.Name = "Column21";
            this.Column21.ReadOnly = true;
            this.Column21.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.Column21.UserTextNumericFormat = QMVnSoft.AppInstance.TextNumericFormat.Percent;
            this.Column21.Width = 70;
            // 
            // Column22
            // 
            this.Column22.DataPropertyName = "So_Luong9";
            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
            this.Column22.DefaultCellStyle = dataGridViewCellStyle4;
            this.Column22.HeaderText = "Số lượng";
            this.Column22.Name = "Column22";
            this.Column22.ReadOnly = true;
            this.Column22.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.Column22.UserTextNumericFormat = QMVnSoft.AppInstance.TextNumericFormat.Quantity;
            this.Column22.Width = 70;
            // 
            // Column23
            // 
            this.Column23.DataPropertyName = "Gia_Nt9";
            dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
            this.Column23.DefaultCellStyle = dataGridViewCellStyle5;
            this.Column23.HeaderText = "Đơn giá";
            this.Column23.Name = "Column23";
            this.Column23.ReadOnly = true;
            this.Column23.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.Column23.UserTextNumericFormat = QMVnSoft.AppInstance.TextNumericFormat.ForeignPrice;
            this.Column23.Width = 80;
            // 
            // Column24
            // 
            this.Column24.DataPropertyName = "Tien_Nt9";
            dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
            this.Column24.DefaultCellStyle = dataGridViewCellStyle6;
            this.Column24.HeaderText = "Thành tiền";
            this.Column24.MinimumWidth = 90;
            this.Column24.Name = "Column24";
            this.Column24.ReadOnly = true;
            this.Column24.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.Column24.UserTextNumericFormat = QMVnSoft.AppInstance.TextNumericFormat.ForeignAmount;
            this.Column24.Width = 90;
            // 
            // Column25
            // 
            this.Column25.DataPropertyName = "Tien5";
            dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
            this.Column25.DefaultCellStyle = dataGridViewCellStyle7;
            this.Column25.HeaderText = "Thuế NK";
            this.Column25.Name = "Column25";
            this.Column25.ReadOnly = true;
            this.Column25.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.Column25.UserTextNumericFormat = QMVnSoft.AppInstance.TextNumericFormat.LocalAmount;
            this.Column25.Width = 90;
            // 
            // Column26
            // 
            this.Column26.DataPropertyName = "Thue_TTDB";
            dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
            this.Column26.DefaultCellStyle = dataGridViewCellStyle8;
            this.Column26.HeaderText = "%ĐB";
            this.Column26.Name = "Column26";
            this.Column26.ReadOnly = true;
            this.Column26.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.Column26.UserTextNumericFormat = QMVnSoft.AppInstance.TextNumericFormat.Percent;
            this.Column26.Width = 70;
            // 
            // Column27
            // 
            this.Column27.DataPropertyName = "Tien8";
            dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
            this.Column27.DefaultCellStyle = dataGridViewCellStyle9;
            this.Column27.HeaderText = "Thuế TTĐB";
            this.Column27.Name = "Column27";
            this.Column27.ReadOnly = true;
            this.Column27.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.Column27.UserTextNumericFormat = QMVnSoft.AppInstance.TextNumericFormat.LocalAmount;
            this.Column27.Width = 90;
            // 
            // Column28
            // 
            this.Column28.DataPropertyName = "Hoa_Hong";
            dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
            this.Column28.DefaultCellStyle = dataGridViewCellStyle10;
            this.Column28.HeaderText = "%HH";
            this.Column28.Name = "Column28";
            this.Column28.ReadOnly = true;
            this.Column28.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.Column28.UserTextNumericFormat = QMVnSoft.AppInstance.TextNumericFormat.Percent;
            this.Column28.Width = 70;
            // 
            // Column29
            // 
            this.Column29.DataPropertyName = "Tien_Nt4";
            dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
            this.Column29.DefaultCellStyle = dataGridViewCellStyle11;
            this.Column29.HeaderText = "Hoa hồng";
            this.Column29.Name = "Column29";
            this.Column29.ReadOnly = true;
            this.Column29.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.Column29.UserTextNumericFormat = QMVnSoft.AppInstance.TextNumericFormat.ForeignAmount;
            this.Column29.Width = 90;
            // 
            // Column30
            // 
            this.Column30.DataPropertyName = "Tien_Nt6";
            dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
            this.Column30.DefaultCellStyle = dataGridViewCellStyle12;
            this.Column30.HeaderText = "Chi phí";
            this.Column30.Name = "Column30";
            this.Column30.ReadOnly = true;
            this.Column30.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.Column30.UserTextNumericFormat = QMVnSoft.AppInstance.TextNumericFormat.ForeignAmount;
            this.Column30.Width = 90;
            // 
            // Column31
            // 
            this.Column31.DataPropertyName = "Thue_GTGT";
            dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
            this.Column31.DefaultCellStyle = dataGridViewCellStyle13;
            this.Column31.HeaderText = "%GT";
            this.Column31.Name = "Column31";
            this.Column31.ReadOnly = true;
            this.Column31.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.Column31.UserTextNumericFormat = QMVnSoft.AppInstance.TextNumericFormat.Percent;
            this.Column31.Width = 70;
            // 
            // Column32
            // 
            this.Column32.DataPropertyName = "Tien_Nt3";
            dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
            this.Column32.DefaultCellStyle = dataGridViewCellStyle14;
            this.Column32.HeaderText = "Thuế GTGT";
            this.Column32.Name = "Column32";
            this.Column32.ReadOnly = true;
            this.Column32.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.Column32.UserTextNumericFormat = QMVnSoft.AppInstance.TextNumericFormat.ForeignAmount;
            this.Column32.Width = 90;
            // 
            // FormCTMHViewer
            // 
            this.ClientSize = new System.Drawing.Size(794, 534);
            this.Controls.Add(this.grdDetail);
            this.Controls.Add(this.txtGia_Thue);
            this.Controls.Add(this.lblGia_Thue);
            this.Controls.Add(this.lblSo_Seri0);
            this.Controls.Add(this.lblSo_Ct0);
            this.Controls.Add(this.txtSo_Seri0);
            this.Controls.Add(this.txtSo_Ct0);
            this.Controls.Add(this.txtThue_GTGT);
            this.Controls.Add(this.lblThue_GTGT);
            this.Controls.Add(this.txtTien_Cash);
            this.Controls.Add(this.lblTien_Cash);
            this.Controls.Add(this.txtTTien_Nt3);
            this.Controls.Add(this.lblTTien_Nt3);
            this.Controls.Add(this.txtTTien_Nt4);
            this.Controls.Add(this.txtTTien_Nt5);
            this.Controls.Add(this.lblTTien_Nt4);
            this.Controls.Add(this.lblTTien_Nt5);
            this.Controls.Add(this.txtTTien_Nt8);
            this.Controls.Add(this.txtTTien_Nt);
            this.Controls.Add(this.lblTTien_Nt8);
            this.Controls.Add(this.lblTTien_Nt);
            this.Controls.Add(this.txtTTien_Nt6);
            this.Controls.Add(this.lblTTien_Nt6);
            this.Controls.Add(this.txtTTien_Nt0);
            this.Controls.Add(this.lblTTien_Nt0);
            this.Controls.Add(this.txtNgay_Ct0);
            this.Controls.Add(this.lblNgay_Ct0);
            this.Controls.Add(this.txtHan_Tt);
            this.Controls.Add(this.lblHan_Tt);
            this.Controls.Add(this.txtMa_Tte);
            this.Controls.Add(this.txtTy_Gia);
            this.Controls.Add(this.txtDia_Chi);
            this.Controls.Add(this.txtOng_Ba);
            this.Controls.Add(this.txtTen_Dt);
            this.Controls.Add(this.lblMa_Tte);
            this.Controls.Add(this.txtMa_Dt);
            this.Controls.Add(this.lblDia_Chi);
            this.Controls.Add(this.lblOng_Ba);
            this.Controls.Add(this.lblMa_Dt);
            this.Controls.Add(this.txtDesc_EN);
            this.Controls.Add(this.txtDien_Giai);
            this.Controls.Add(this.txtTen_Nx);
            this.Controls.Add(this.txtTen_Hd);
            this.Controls.Add(this.txtTen_Km);
            this.Controls.Add(this.txtTen_Bp);
            this.Controls.Add(this.lblDesc_EN);
            this.Controls.Add(this.lblDien_Giai);
            this.Controls.Add(this.txtMa_Nx);
            this.Controls.Add(this.txtMa_Hd);
            this.Controls.Add(this.lblMa_Nx);
            this.Controls.Add(this.lblMa_Hd);
            this.Controls.Add(this.txtMa_Km);
            this.Controls.Add(this.lblMa_Km);
            this.Controls.Add(this.txtMa_Bp);
            this.Controls.Add(this.lblMa_Bp);
            this.Controls.Add(this.grdSubDetail);
            this.Name = "FormCTMHViewer";
            this.Controls.SetChildIndex(this.grdSubDetail, 0);
            this.Controls.SetChildIndex(this.lblPhan_Loai, 0);
            this.Controls.SetChildIndex(this.txtSo_Ct, 0);
            this.Controls.SetChildIndex(this.txtNgay_Ps, 0);
            this.Controls.SetChildIndex(this.txtNgay_Ct, 0);
            this.Controls.SetChildIndex(this.txtMa_Loai1, 0);
            this.Controls.SetChildIndex(this.txtMa_Loai2, 0);
            this.Controls.SetChildIndex(this.txtMa_Loai3, 0);
            this.Controls.SetChildIndex(this.lblMa_Bp, 0);
            this.Controls.SetChildIndex(this.txtMa_Bp, 0);
            this.Controls.SetChildIndex(this.lblMa_Km, 0);
            this.Controls.SetChildIndex(this.txtMa_Km, 0);
            this.Controls.SetChildIndex(this.lblMa_Hd, 0);
            this.Controls.SetChildIndex(this.lblMa_Nx, 0);
            this.Controls.SetChildIndex(this.txtMa_Hd, 0);
            this.Controls.SetChildIndex(this.txtMa_Nx, 0);
            this.Controls.SetChildIndex(this.lblDien_Giai, 0);
            this.Controls.SetChildIndex(this.lblDesc_EN, 0);
            this.Controls.SetChildIndex(this.txtTen_Bp, 0);
            this.Controls.SetChildIndex(this.txtTen_Km, 0);
            this.Controls.SetChildIndex(this.txtTen_Hd, 0);
            this.Controls.SetChildIndex(this.txtTen_Nx, 0);
            this.Controls.SetChildIndex(this.txtDien_Giai, 0);
            this.Controls.SetChildIndex(this.txtDesc_EN, 0);
            this.Controls.SetChildIndex(this.lblMa_Dt, 0);
            this.Controls.SetChildIndex(this.lblOng_Ba, 0);
            this.Controls.SetChildIndex(this.lblDia_Chi, 0);
            this.Controls.SetChildIndex(this.txtMa_Dt, 0);
            this.Controls.SetChildIndex(this.lblMa_Tte, 0);
            this.Controls.SetChildIndex(this.txtTen_Dt, 0);
            this.Controls.SetChildIndex(this.txtOng_Ba, 0);
            this.Controls.SetChildIndex(this.txtDia_Chi, 0);
            this.Controls.SetChildIndex(this.txtTy_Gia, 0);
            this.Controls.SetChildIndex(this.txtMa_Tte, 0);
            this.Controls.SetChildIndex(this.lblHan_Tt, 0);
            this.Controls.SetChildIndex(this.txtHan_Tt, 0);
            this.Controls.SetChildIndex(this.lblNgay_Ct0, 0);
            this.Controls.SetChildIndex(this.txtNgay_Ct0, 0);
            this.Controls.SetChildIndex(this.lblTTien_Nt0, 0);
            this.Controls.SetChildIndex(this.txtTTien_Nt0, 0);
            this.Controls.SetChildIndex(this.lblTTien_Nt6, 0);
            this.Controls.SetChildIndex(this.txtTTien_Nt6, 0);
            this.Controls.SetChildIndex(this.lblTTien_Nt, 0);
            this.Controls.SetChildIndex(this.lblTTien_Nt8, 0);
            this.Controls.SetChildIndex(this.txtTTien_Nt, 0);
            this.Controls.SetChildIndex(this.txtTTien_Nt8, 0);
            this.Controls.SetChildIndex(this.lblTTien_Nt5, 0);
            this.Controls.SetChildIndex(this.lblTTien_Nt4, 0);
            this.Controls.SetChildIndex(this.txtTTien_Nt5, 0);
            this.Controls.SetChildIndex(this.txtTTien_Nt4, 0);
            this.Controls.SetChildIndex(this.lblTTien_Nt3, 0);
            this.Controls.SetChildIndex(this.txtTTien_Nt3, 0);
            this.Controls.SetChildIndex(this.lblTien_Cash, 0);
            this.Controls.SetChildIndex(this.txtTien_Cash, 0);
            this.Controls.SetChildIndex(this.lblThue_GTGT, 0);
            this.Controls.SetChildIndex(this.txtThue_GTGT, 0);
            this.Controls.SetChildIndex(this.txtSo_Ct0, 0);
            this.Controls.SetChildIndex(this.txtSo_Seri0, 0);
            this.Controls.SetChildIndex(this.lblSo_Ct0, 0);
            this.Controls.SetChildIndex(this.lblSo_Seri0, 0);
            this.Controls.SetChildIndex(this.lblGia_Thue, 0);
            this.Controls.SetChildIndex(this.txtGia_Thue, 0);
            this.Controls.SetChildIndex(this.grdDetail, 0);
            ((System.ComponentModel.ISupportInitialize)(this.grdDetail)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.grdSubDetail)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        internal override void OnResetControls()
        {
            base.DetailGridBrowser = this.grdDetail;
            base.DetailSubBrowser = this.grdSubDetail;
            int num = 0;
            if (base.AppInvoiceParameters.AllowDepartmentControl != 1)
            {
                num += this.txtMa_Hd.Top - this.txtMa_Bp.Top;
                this.lblMa_Bp.Visible = false;
                this.txtMa_Bp.Visible = false;
                this.txtTen_Bp.Visible = false;
            }
            if (base.AppInvoiceParameters.AllowContractControl != 1)
            {
                num += this.txtMa_Dt.Top - this.txtMa_Hd.Top;
                this.lblMa_Hd.Visible = false;
                this.txtMa_Hd.Visible = false;
                this.txtTen_Hd.Visible = false;
            }
            if (num != 0)
            {
                if (base.AppInvoiceParameters.AllowContractControl == 1)
                {
                    this.lblMa_Hd.Top -= num;
                    this.txtMa_Hd.Top -= num;
                    this.txtTen_Hd.Top -= num;
                }
                this.lblMa_Dt.Top -= num;
                this.txtMa_Dt.Top -= num;
                this.txtTen_Dt.Top -= num;
                this.lblOng_Ba.Top -= num;
                this.txtOng_Ba.Top -= num;
                this.lblDia_Chi.Top -= num;
                this.txtDia_Chi.Top -= num;
                this.lblDien_Giai.Top -= num;
                this.txtDien_Giai.Top -= num;
                this.lblDesc_EN.Top -= num;
                this.txtDesc_EN.Top -= num;
            }
            if (base.AppInvoiceParameters.AllowCategoryControl != 1)
            {
                num += this.txtMa_Nx.Top - this.txtMa_Km.Top;
                this.lblMa_Km.Visible = false;
                this.txtMa_Km.Visible = false;
                this.txtTen_Km.Visible = false;
            }
            else
            {
                this.lblMa_Km.Top -= num;
                this.txtMa_Km.Top -= num;
                this.txtTen_Km.Top -= num;
            }
            if (num != 0)
            {
                this.lblMa_Nx.Top -= num;
                this.txtMa_Nx.Top -= num;
                this.txtTen_Nx.Top -= num;
                this.grdDetail.Top -= num;
                this.grdDetail.Height += num;
                this.grdSubDetail.Top -= num;
                this.grdSubDetail.Height += num;
            }
            if (!base.AppInvoiceParameters.BilingualUsed)
            {
                this.lblDesc_EN.Visible = false;
                this.txtDesc_EN.Visible = false;
                this.txtDien_Giai.Width = (this.txtDesc_EN.Left + this.txtDesc_EN.Width) - this.txtDien_Giai.Left;
                this.txtDien_Giai.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
            }
            if (base.AppInvoiceParameters.InvoiceCode == "PNXT")
            {
                base.DetailGridBrowser.Columns[3].Visible = false;
            }
            if (base.AppInvoiceParameters.AllowDepartmentControl != 2)
            {
                base.DetailGridBrowser.Columns[4].Visible = false;
            }
            if (base.AppInvoiceParameters.AllowContractControl != 2)
            {
                base.DetailGridBrowser.Columns[5].Visible = false;
            }
            if (base.AppInvoiceParameters.AllowCategoryControl != 2)
            {
                base.DetailGridBrowser.Columns[6].Visible = false;
            }
            if (!base.AppInvoiceParameters.AllowProductControl || (base.AppInvoiceParameters.InvoiceCode != "PNXT"))
            {
                base.DetailGridBrowser.Columns[7].Visible = false;
            }
            if (!AppInstance.LotNumberCtrl || (base.AppInvoiceParameters.InvoiceCode == "PNCP"))
            {
                base.DetailGridBrowser.Columns[8].Visible = false;
            }
            if (!AppInstance.DeadLineCtrl || (base.AppInvoiceParameters.InvoiceCode == "PNCP"))
            {
                base.DetailGridBrowser.Columns[9].Visible = false;
            }
            if (!AppInstance.QualityCtrl || (base.AppInvoiceParameters.InvoiceCode == "PNCP"))
            {
                base.DetailGridBrowser.Columns[10].Visible = false;
            }
            if (!AppInstance.DampCtrl || (base.AppInvoiceParameters.InvoiceCode == "PNCP"))
            {
                base.DetailGridBrowser.Columns[11].Visible = false;
            }
            if (!AppInstance.AlcoholCtrl || (base.AppInvoiceParameters.InvoiceCode == "PNCP"))
            {
                base.DetailGridBrowser.Columns[12].Visible = false;
            }
            if (base.AppInvoiceParameters.InvoiceCode == "PNCP")
            {
                base.DetailGridBrowser.Columns[13].Visible = false;
                base.DetailGridBrowser.Columns[14].Visible = false;
            }
            if (!base.AppInvoiceParameters.AllowImportTax)
            {
                base.DetailGridBrowser.Columns[0x10].Visible = false;
                base.DetailSubBrowser.Columns[5].Visible = false;
                base.DetailSubBrowser.Columns[6].Visible = false;
            }
            if (!base.AppInvoiceParameters.AllowSpecialTax)
            {
                base.DetailGridBrowser.Columns[0x11].Visible = false;
                base.DetailGridBrowser.Columns[0x12].Visible = false;
                base.DetailSubBrowser.Columns[7].Visible = false;
                base.DetailSubBrowser.Columns[8].Visible = false;
            }
            if (!base.AppInvoiceParameters.AllowDiscountAndCommission)
            {
                base.DetailGridBrowser.Columns[0x13].Visible = false;
                base.DetailGridBrowser.Columns[20].Visible = false;
            }
            if (!base.AppInvoiceParameters.AllowExpensesControl)
            {
                base.DetailGridBrowser.Columns[0x15].Visible = false;
            }
            if (!base.AppInvoiceParameters.AllowMultiVAT)
            {
                base.DetailGridBrowser.Columns[0x16].Visible = false;
                base.DetailGridBrowser.Columns[0x17].Visible = false;
            }
            if (base.AppInvoiceParameters.FreeFields <= 0)
            {
                num = base.txtMa_Loai1.Top - this.txtNgay_Ct0.Top;
                this.lblTien_Cash.Top += num;
                this.txtTien_Cash.Top += num;
                this.lblTTien_Nt.Top += num;
                this.txtTTien_Nt.Top += num;
                this.lblTTien_Nt6.Top += num;
                this.txtTTien_Nt6.Top += num;
                this.lblHan_Tt.Top += num;
                this.txtHan_Tt.Top += num;
                this.lblTTien_Nt5.Top += num;
                this.txtTTien_Nt5.Top += num;
                this.lblTTien_Nt8.Top += num;
                this.txtTTien_Nt8.Top += num;
                this.lblThue_GTGT.Top += num;
                this.txtThue_GTGT.Top += num;
                this.lblGia_Thue.Top += num;
                this.txtGia_Thue.Top += num;
                this.lblTTien_Nt3.Top += num;
                this.txtTTien_Nt3.Top += num;
                this.lblTTien_Nt4.Top += num;
                this.txtTTien_Nt4.Top += num;
                this.lblNgay_Ct0.Top += num;
                this.txtNgay_Ct0.Top += num;
                this.lblSo_Ct0.Top += num;
                this.txtSo_Ct0.Top += num;
                this.lblSo_Seri0.Top += num;
                this.txtSo_Seri0.Top += num;
                this.lblTTien_Nt0.Top += num;
                this.txtTTien_Nt0.Top += num;
                this.grdDetail.Height += num;
                this.grdSubDetail.Height += num;
            }
            base.OnResetControls();
        }

        protected override void OnResize(EventArgs e)
        {
            base.OnResize(e);
            if (this.txtOng_Ba != null)
            {
                int num = base.ClientSize.Width - 0xcb;
                this.txtOng_Ba.Width = num / 2;
                this.txtDia_Chi.Left = (this.txtOng_Ba.Left + this.txtOng_Ba.Width) + 0x5c;
                this.txtDia_Chi.Width = num - this.txtOng_Ba.Width;
                this.lblDia_Chi.Left = (this.txtDia_Chi.Left - this.lblDia_Chi.Width) - 6;
                if ((base.AppInvoiceParameters != null) && base.AppInvoiceParameters.BilingualUsed)
                {
                    this.txtDien_Giai.Width = this.txtOng_Ba.Width;
                    this.txtDesc_EN.Left = this.txtDia_Chi.Left;
                    this.txtDesc_EN.Width = this.txtDia_Chi.Width;
                    this.lblDesc_EN.Left = (this.txtDesc_EN.Left - this.lblDesc_EN.Width) - 6;
                }
            }
        }

        internal override void OnShow()
        {
            base.OnShow();
            this.txtMa_Tte.Value = base.LocalMasterRow["Ma_Tte"];
            this.txtTy_Gia.Value = base.LocalMasterRow["Ty_Gia"];
            this.txtMa_Bp.Value = base.LocalMasterRow["Ma_Bp"];
            this.txtTen_Bp.Value = base.LocalMasterRow["Ten_Bp"];
            this.txtMa_Hd.Value = base.LocalMasterRow["Ma_Hd"];
            this.txtTen_Hd.Value = base.LocalMasterRow["Ten_Hd"];
            this.txtMa_Dt.Value = base.LocalMasterRow["Ma_Dt"];
            this.txtTen_Dt.Value = base.LocalMasterRow["Ten_Dt"];
            this.txtOng_Ba.Value = base.LocalMasterRow["Ong_Ba"];
            this.txtDia_Chi.Value = base.LocalMasterRow["Dia_Chi"];
            this.txtDien_Giai.Value = base.LocalMasterRow["Dien_Giai"];
            this.txtDesc_EN.Value = base.LocalMasterRow["Desc_EN"];
            this.txtMa_Km.Value = base.LocalMasterRow["Ma_Km"];
            this.txtTen_Km.Value = base.LocalMasterRow["Ten_Km"];
            this.txtMa_Nx.Value = base.LocalMasterRow["Ma_Nx"];
            this.txtTen_Nx.Value = base.LocalMasterRow["Ten_Nx"];
            this.txtTien_Cash.Value = base.LocalMasterRow["Tien_Cash"];
            this.txtTTien_Nt.Value = base.LocalMasterRow["TTien_Nt"];
            this.txtTTien_Nt6.Value = base.LocalMasterRow["TTien_Nt6"];
            this.txtHan_Tt.Value = base.LocalMasterRow["Han_Tt"];
            this.txtTTien_Nt5.Value = base.LocalMasterRow["TTien_Nt5"];
            this.txtTTien_Nt8.Value = base.LocalMasterRow["TTien_Nt8"];
            this.txtThue_GTGT.Value = base.LocalMasterRow["Thue_GTGT"];
            this.txtGia_Thue.Value = base.LocalMasterRow["Gia_Thue"];
            this.txtTTien_Nt3.Value = base.LocalMasterRow["TTien_Nt3"];
            this.txtTTien_Nt4.Value = base.LocalMasterRow["TTien_Nt4"];
            this.txtNgay_Ct0.Value = base.LocalMasterRow["Ngay_Ct0"];
            this.txtSo_Ct0.Value = base.LocalMasterRow["So_Ct0"];
            this.txtSo_Seri0.Value = base.LocalMasterRow["So_Seri0"];
            this.txtTTien_Nt0.Value = base.LocalMasterRow["TTien_Nt0"];
        }
    }
}

